#include <iostream>
#include <string>
#include <fstream>
#include <time.h>
#include "CJsonObject.hpp"
#include <unistd.h>
#include <string>

using namespace std;

int main(){
    //open log file
    ofstream fout_errors,fout_warmings,fout_infos;
    fout_errors.open("\\data\\edge\\errors.log",ios_base::out | ios_base::app);
    fout_warmings.open("\\data\\edge\\warmings.log",ios_base::out | ios_base::app);
    fout_infos.open("\\data\\edge\\infos.log",ios_base::out | ios_base::app);
    //creat or open log_count file
    ofstream fout_errors_count,fout_warmings_count,fout_infos_count;
    fout_errors.open("\\data\\edge\\errors_count.txt",ios_base::out | ios_base::app);
    fout_warmings.open("\\data\\edge\\warmings_count.txt",ios_base::out | ios_base::app);
    fout_infos.open("\\data\\edge\\infos_count.txt",ios_base::out | ios_base::app);
    //do something to update them...

    fout_errors.close();
    fout_warmings.close();
    fout_infos.close();
    fout_errors_count.close();
    fout_warmings_count.close();
    fout_infos_count.close();
}